package com.itheima.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageResultVo<T> implements Serializable {
    private static final long serialVersionUID = 8544996863226528798L;
    //总记录数,需要查询表中总记录数封装进入
    private Integer total;
    //总页数
    private Integer totalPages;
    //每页数量
    private Integer pageSize;
    //当前页码
    private Integer pageNum;
    //查询出来的数据
    private List<T> list;

}
